<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('index')}">虚拟地址列表</a></li>
			<li class="active"><a href="">编辑</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('edit')}">
			<div class="form-group">
				<label for="input-home_no" class="col-sm-2 control-label"><span class="form-required">*</span>房间号</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$result.home_no}" required id="input-home_no" name="home_no">
				</div>
			</div>
			<div class="form-group">
				<label for="input-address_name" class="col-sm-2 control-label"><span class="form-required">*</span>详细地址</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$result.address_name}" required id="input-address_name" name="address_name">
				</div>
			</div>
			<div class="form-group">
				<label for="input-from_to" class="col-sm-2 control-label"><span class="form-required">*</span>去向</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$result.from_to}" required id="input-from_to" name="from_to">
				</div>
			</div>
			<div class="form-group">
				<label for="select-cus_type" class="col-sm-2 control-label"><span class="form-required">*</span>客户类型</label>
				<div class="col-md-6 col-sm-10">
					<select name="cus_type" id="select-cus_type" class="form-control" required>
						<option value="1" <eq name="result.cus_type" value="1">selected</eq> >中介</option>
						<option value="2" <eq name="result.cus_type" value="2">selected</eq> >直接客户</option>
						<option value="0" <eq name="result.cus_type" value="0">selected</eq> >无</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="input-company" class="col-sm-2 control-label"><span class="form-required">*</span>公司名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$result.company}" required id="input-company" name="company">
				</div>
			</div>
			<div class="form-group">
				<label for="input-corporation" class="col-sm-2 control-label"><span class="form-required">*</span>法人</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$result.corporation}" required id="input-corporation" name="corporation">
				</div>
			</div>
			<div class="form-group">
				<label for="input-manager" class="col-sm-2 control-label"><span class="form-required">*</span>录入人</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" style="width:400px;" required value="{$result.user_nickname}"
						   placeholder="请选择负责人" onclick="doSelectLayer(this);"
						   data-url="{:url('department/user/select')}" data-id="input-manager" name="layer_temp[1]"
						   readonly/>
					<input class="form-control" type="hidden" value="{$result.uid}" name="uid"
						   id="input-manager"/>
				</div>
			</div>
			<div class="form-group">
				<label for="input-start_time" class="col-sm-2 control-label">合同开始时间</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control js-bootstrap-date" type="text" name="start_time" id="input-start_time"
						   value="{$result.start_time|date='Y-m-d',###}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-end_time" class="col-sm-2 control-label">合同结束时间</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control js-bootstrap-date" type="text" name="end_time" id="input-end_time"
						   value="{$result.end_time|date='Y-m-d',###}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-phone" class="col-sm-2 control-label"><span class="form-required">*</span>手机号</label>
				<div class="col-md-6 col-sm-10">
					<input type="tel" class="form-control" value="{$result.phone}" id="input-phone" required name="phone">
					<p class="help-block">多手机号之间用英文逗号隔开</p>
				</div>
			</div>
			<div class="form-group">
				<label for="input-handset" class="col-sm-2 control-label">座机</label>
				<div class="col-md-6 col-sm-10">
					<input type="tel" class="form-control" value="{$result.handset}" id="input-handset" name="handset">
				</div>
			</div>
			<div class="form-group">
				<label for="input-email" class="col-sm-2 control-label">邮箱</label>
				<div class="col-md-6 col-sm-10">
					<input type="tel" class="form-control" value="{$result.email}" id="input-email" name="email">
				</div>
			</div>
			<div class="form-group">
				<label for="textarea-remark" class="col-sm-2 control-label">备注</label>
				<div class="col-md-6 col-sm-10">
					<textarea name="remark" class="form-control" id="textarea-remark" rows="3">{$result.remark}</textarea>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input name="id" type="hidden" value="{$result.id}"/>
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">返回</a>
				</div>
			</div>
		</form>
	</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>